<%@ Control Language="C#" AutoEventWireup="true" CodeFile="usrIdNumber.ascx.cs" Inherits="controls_IdNumber" %>
<span class="indicator">
<%--    <asp:DropDownList ID="ddlIdPrefix" runat="server" ToolTip="Choose Prefix Character" Visible ="false" Enabled ="false">
        <asp:ListItem Selected="True" Value="-1">NA</asp:ListItem>
        <asp:ListItem Value="S">S</asp:ListItem>
        <asp:ListItem Value="T">T</asp:ListItem>
        <asp:ListItem Value="F">F</asp:ListItem>
        <asp:ListItem Value="G">G</asp:ListItem>
    </asp:DropDownList>--%>
</span>
<span class="indicator"><%--Choose Id No Intial character.--%>
<%--    <asp:CustomValidator ID="csvIdPrefix" runat="server" ControlToValidate="ddlIdPrefix" Enabled ="false"
        ErrorMessage="" Text="" ClientValidationFunction="IdPrefixClientValidate"
        OnServerValidate="IdPrefixServerValidation" validationErrorCssClass="validationError"
        Display="Dynamic"></asp:CustomValidator>--%>
        </span> 
        <span class="indicator">
            <asp:TextBox ID="txtIdNumber" runat="server" MaxLength="13" Width="140px" ToolTip="Enter 13 digits"></asp:TextBox>
        </span><span class="indicator"><%--Require ID Number--%>
            <asp:RequiredFieldValidator ID="rfvIdNumber" runat="server" ControlToValidate="txtIdNumber"
                ErrorMessage="" validationErrorCssClass="validationError" Display="Dynamic"
                Text=""></asp:RequiredFieldValidator>
        </span><span class="indicator"><%--ID number must be 13 digits numbers values.--%>
            <asp:RegularExpressionValidator ControlToValidate="txtIdNumber" validationErrorCssClass="validationError"
                ID="revIdNumberLength" Display="Dynamic" ValidationExpression="[0-9]{13}" runat="server" ErrorMessage="" Text="">
                </asp:RegularExpressionValidator>
        </span><span class="indicator"><%--NRIC/FIN number is not valid.--%>
            <asp:CustomValidator ID="csvIdNumber" runat="server" ClientValidationFunction="CheckIdNumberClientValidate" Enabled ="false"
                ControlToValidate="txtIdNumber" validationErrorCssClass="validationError" Display="Dynamic"
                ErrorMessage=""  OnServerValidate="CheckIdNumberServerValidation"
                Text="">
            </asp:CustomValidator>
        </span><span class="indicator">
<%--            <asp:DropDownList ID="ddlIdPostfix" runat="server" ToolTip="Choose last character" Visible="false" Enabled="false">
                <asp:ListItem Value="-1" Selected="True">NA</asp:ListItem>
                <asp:ListItem Value="A">A</asp:ListItem>
                <asp:ListItem Value="B">B</asp:ListItem>
                <asp:ListItem Value="C">C</asp:ListItem>
                <asp:ListItem Value="D">D</asp:ListItem>
                <asp:ListItem Value="E">E</asp:ListItem>
                <asp:ListItem Value="F">F</asp:ListItem>
                <asp:ListItem Value="G">G</asp:ListItem>
                <asp:ListItem Value="H">H</asp:ListItem>
                <asp:ListItem Value="I">I</asp:ListItem>
                <asp:ListItem Value="J">J</asp:ListItem>
                <asp:ListItem Value="K">K</asp:ListItem>
                <asp:ListItem Value="L">L</asp:ListItem>
                <asp:ListItem Value="M">M</asp:ListItem>
                <asp:ListItem Value="N">N</asp:ListItem>
                <asp:ListItem Value="O">O</asp:ListItem>
                <asp:ListItem Value="P">P</asp:ListItem>
                <asp:ListItem Value="Q">Q</asp:ListItem>
                <asp:ListItem Value="R">R</asp:ListItem>
                <asp:ListItem Value="S">S</asp:ListItem>
                <asp:ListItem Value="T">T</asp:ListItem>
                <asp:ListItem Value="U">U</asp:ListItem>
                <asp:ListItem Value="V">V</asp:ListItem>
                <asp:ListItem Value="W">W</asp:ListItem>
                <asp:ListItem Value="X">X</asp:ListItem>
                <asp:ListItem Value="Y">Y</asp:ListItem>
                <asp:ListItem Value="Z">Z</asp:ListItem>
            </asp:DropDownList>--%>
        </span><span class="indicator"><%--Choose Id No last character.--%>
<%--            <asp:CustomValidator ID="csvIdPostfix" runat="server" ControlToValidate="ddlIdPostfix" Enabled ="false"
                ErrorMessage="" Text="" OnServerValidate="IdPostfixServerValidation"
                ClientValidationFunction="IdPostfixClientValidate" validationErrorCssClass="validationError"
                Display="Dynamic"></asp:CustomValidator>--%>
        </span>
<%--<div class="indicator">
    <asp:CustomValidator ID="csvIdNumberLength" runat="server" ControlToValidate="txtIdNumber"
        ErrorMessage="NRIC / FIN must be 7 digits." ClientValidationFunction="IdNumberLengthClientValidate"
        OnServerValidate="IdNumberLengthServerValidation" Text="NRIC / FIN must be 7 digits." validationErrorCssClass="validationError" Display="Dynamic"></asp:CustomValidator>
</div>--%>